<?php
/**
* @package GPCB
* @author caballeroantonio
* @website http://caballeroantonio.com
* @email caballeroantonio@hotmail.com
* @copyright Copyright (C) 2014. All Rights Reserved
* @license Creative Commons Attribution-NoDerivatives 4.0 International License
**/

defined('_JEXEC') or die;
?>
<div id="tour-searchbox" class="input-group searchbox">
    <form action="<?php echo JRoute::_('index.php');?>" method="post" class="form-inline">
        <input name="searchword" type="search" class="form-control" placeholder="<?= $text ?>" maxlength="<?= $maxlength ?>" size="<?= $width ?>"  />
        <!--<input  id="mod-search-searchword"  class="inputbox search-query" type="text"   onblur="if (this.value==\'\') this.value=\'' . $text . '\';" onfocus="if (this.value==\'<?= $text ?>\') this.value=\'\';" />-->
        <span class="input-group-btn">
            <button class="btn btn-default" type="submit"><i class="fa fa-search"></i>
            </button>
        </span>
        <input type="hidden" name="task" value="search" />
        <input type="hidden" name="option" value="com_search" />
        <input type="hidden" name="Itemid" value="<?php echo $mitemid; ?>" />
    </form>
</div>
<?php /*?>
<div class="search<?php echo $moduleclass_sfx ?>">

		<?php
			$output = '<label for="mod-search-searchword" class="element-invisible">' . $label . '</label> ';
			$output .= '';

			if ($button) :
				if ($imagebutton) :
					$btn_output = ' <input type="image" value="' . $button_text . '" class="button" src="' . $img . '" onclick="this.form.searchword.focus();"/>';
				else :
					$btn_output = ' <button class="button btn btn-primary" onclick="this.form.searchword.focus();">' . $button_text . '</button>';
				endif;

				switch ($button_pos) :
					case 'top' :
						$output = $btn_output . '<br />' . $output;
						break;

					case 'bottom' :
						$output .= '<br />' . $btn_output;
						break;

					case 'right' :
						$output .= $btn_output;
						break;

					case 'left' :
					default :
						$output = $btn_output . $output;
						break;
				endswitch;

			endif;

			echo $output;
		?>


</div>
<?php */?>